package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品信息对象 t_goods_inorders
 * 
 * @author ruoyi
 * @date 2024-05-29
 */
public class TGoodsInorders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单主键 */

    @Excel(name = "订单id")
    private String orderId;

    /** 商品主键 */
    @Excel(name = "商品id")
    private String goodsId;

    /** 商品订购个数 */
    @Excel(name = "商品订购个数")
    private Long amount;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("amount", getAmount())
            .toString();
    }
}
